package com.elvin.wx.beans;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * 初始数据
 */
@TableName("fn_raw_data")
public class RawData extends Model<RawData> {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer  id;//	id
    private String deviceNumber;//设备编号
    private String deviceName;//设备名称
    private Float  pressureVal;//	压力值
    private Float  temperatureVal;//	温度值
    private Date utcTime;//	采集时间
    private Integer  warnFlag;//	报警标志（warn_flag>=3表示报警)
    private String  comment;//	备注

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDeviceNumber() {
        return deviceNumber;
    }

    public void setDeviceNumber(String deviceNumber) {
        this.deviceNumber = deviceNumber;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public Float getPressureVal() {
        return pressureVal;
    }

    public void setPressureVal(Float pressureVal) {
        this.pressureVal = pressureVal;
    }

    public Float getTemperatureVal() {
        return temperatureVal;
    }

    public void setTemperatureVal(Float temperatureVal) {
        this.temperatureVal = temperatureVal;
    }

    public Date getUtcTime() {
        return utcTime;
    }

    public void setUtcTime(Date utcTime) {
        this.utcTime = utcTime;
    }

    public Integer getWarnFlag() {
        return warnFlag;
    }

    public void setWarnFlag(Integer warnFlag) {
        this.warnFlag = warnFlag;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
